package com.cxt.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户验证码信息
 * </p>
 *
 * @author baomidou
 * @since 2025-05-23
 */
@TableName("verification_codes")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VerificationCodeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识符，自动递增
     */
    private Long id;

    /**
     * 用户手机号码，最大长度20位
     */
    private String phoneNumber;

    /**
     * 生成的验证码，最大长度6位
     */
    private String verificationCode;

    private LocalDateTime createdAt;
}